package com.sfpay.coreplatform.account.service.inner.impl;

import javax.annotation.Resource;

import com.sfpay.coreplatform.account.service.inner.IHessianServiceFactory;
import com.sfpay.framework.common.hession.HessianInvoke;
import com.sfpay.pubcenter.service.IConfigruationCenter;

/**
 * 
 * 
 * 类说明：HessianService工厂类
 * 
 * 
 * <p>
 * 详细描述：
 * 
 * 
 * @author 311448
 * 
 *         CreateDate: 2012-3-22
 */
public final class HessianServiceFactory implements IHessianServiceFactory {

	/**
	 * Hessian服务工厂构造器
	 */
	public HessianServiceFactory() {

	}

	// Hessian引用
	@Resource
	private HessianInvoke omsServiceInvoke;

	// 服务接口
	private IConfigruationCenter configruationCenter;
	
	public IConfigruationCenter getConfigruationCenter() {
		if (configruationCenter == null) {
			configruationCenter = (IConfigruationCenter) omsServiceInvoke.getImpl(
					IConfigruationCenter.class, "configruationCenter");
		}
		return configruationCenter;
	}
	
}